
{layout name="layout/common" /}
<div class="register_head">
    <img id="back" src="__STATIC__/index/img/return.png">
    <p>积分管理</p>
    <a href="{:Url('index/index/power',['viplevel'=>$user->vip_id])}">
        <img id="integral_img" src="__STATIC__/index/img/jifen.png">
    </a>

</div>

<div class="main">
    <div class="integral_integral">
        <div class="integral_card">
            <span class="integral_huiyuan">{$user->vip_title}{if condition="$user->vip_title != '暂无等级'"}会员{/if}</span>
            <img id="header" src="{$wechat_user['headimgurl']}" >
            <div class="integral_msg">
                <p>{$user->user_name}</p>
                <p>{if($intedral)}<?php echo count($intedral);  ?>项{/if}&nbsp;&nbsp;<img src="__STATIC__/index/img/more.png"></p>
            </div>

            <div class="integral_total">
                <?php $jf =substr($user['jifen'],0,strlen($user['jifen'])-3) / 100;  ?>
                <big style="font-size: 18px">{$jf}</big>&nbsp;<small style="font-size: 14px">积分</small>
            </div>
        </div>
    </div>
    <div class="integral_title">积分明细</div>

<div style="margin-bottom: 75px;display: block;">
    {if($intedral)}
    {foreach $intedral as $vo}
    <a href="{:Url('index/personal/integral_xiangqing',['address'=>$vo['address'],'point'=>$vo['point']])}">
        <div class="integral_detail">
            <div class="integral_content">

                <p  class="integral_address"><?php echo substr($vo['address'],0,strlen($vo['address'])-4); ?>*号<br/><small id="date">{$vo.sysdate}</small></p>
            </div>
            <div class="integral_result">
                <?php $v =substr($vo['point'],0,strlen($vo['point'])-3) / 100;  ?>
                &nbsp;+{$v}&nbsp;
            </div>
        </div>

    </a>
    {/foreach}
    {/if}
    <!-- <a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a>
    <a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a>
    <a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a>
    <a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a>
    <a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a><a href="{:Url('index/personal/integral_xiangqing',['address'=>'成都市成华区奥园广场2栋101','point'=>'+66'])}">
        <div class="integral_detail">
            <div class="integral_content">
                <p  class="integral_address">成都市成华区奥园广场2栋101<br/><small id="">10月16日</small></p>
            </div>
            <div class="integral_result">
                &nbsp;+66&nbsp;
            </div>
        </div>


    </a> -->

</div>
</div>
<script>
  // 取消提示的http地址显示
    window.alert = function(name) {
        var iframe = document.createElement("IFRAME");
        iframe.style.display = "none";
        iframe.setAttribute("src", 'data:text/plain,');
        document.documentElement.appendChild(iframe);
        window.frames[0].window.alert(name);
        iframe.parentNode.removeChild(iframe);
    }
    $(function(){
        $('.txt').css('color',"#000");
        $(".txt3").css('color',"red");
        $('.img1').attr('src',"/static/index/img/icon1-1.png");
        $('.img2').attr('src',"/static/index/img/icon2-2.png");
        $('.img3').attr('src',"/static/index/img/icon3-3.png");
        $('.img4').attr('src',"/static/index/img/icon4-4.png");
        $('.img3').attr('src',"/static/index/img/icon3.png");
    })

</script>
<script>
    $(function(){
        $("#back").click(function(){
         /* window.history.go(-1);*/
         window.location.replace("{:Url('index/index/index')}");
     });
    })
</script>
